package com.springcloudalibaba.apiAsyn.service;

import com.springcloudalibaba.bclass.base.BaseMsgEntity;
import org.springframework.scheduling.annotation.Async;

import java.util.concurrent.CompletableFuture;

/**
 * @description: 短信服务
 * @author: lixing
 * @time: 2021/6/6 12:36
 */
public interface MsgService {
    /**
     * @描述 TODO 用户登录
     * @作者 lixing
     * @日期 2019/3/30 15:51
     * @Param [
     *  category: 短信类型，详见 MsgCategoryEnum 枚举
     *  receiver: 接收者的手机号码
     * ]
     */
    @Async("api-asyn-taskExecutor")
    CompletableFuture<Boolean> userLogin(BaseMsgEntity baseMsgEntity);

    /**
     * @描述 TODO 修改密码
     * @作者 lixing
     * @日期 2019/3/30 15:51
     * @Param [
     *  category: 短信类型，详见 MsgCategoryEnum 枚举
     *  receiver: 接收者的手机号码
     * ]
     */
    @Async("api-asyn-taskExecutor")
    CompletableFuture<Boolean> updatePwd(BaseMsgEntity baseMsgEntity);
}
